package cn.com.queue;

import org.apache.commons.logging.Log;

/**
 * 处理发送用户购买套餐和礼品卡的短信提醒
 * @author liufl
 * @version 创建时间：2017年7月19日 上午8:57:06
 * 类说明
 */
import org.apache.commons.logging.LogFactory;

import cn.com.entity.UserOrderDTO;
public class SendMsgThread implements Runnable {

	private Log log = LogFactory.getLog(this.getClass().getName());
	private int id;

	public SendMsgThread(int id){
		this.id=id;
	}
	
	@Override
	public void run() {
		Thread t = Thread.currentThread();
		t.setName("handler-thread:" + id);
		UserOrderDTO message = null;
		while (true) {
			try {
				message = SendMsgQueue.getMessage();
				if (message == null) {
					continue;
				}
//				this.processorUserOrder(message);
			} catch (Exception e) {
				log.error("", e);
			}
		}
	}
}